﻿<Window x:Class="HRM.View.ChooseGroupUserDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Chọn nhóm" Height="150" Width="250"
        DataContext="{Binding ChooseGroupDialog, Source={StaticResource Locator}}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <ComboBox ItemsSource="{Binding GroupUsers}" Grid.Row="0" Height="28" Width="200" SelectedItem="{Binding SelectedItem}">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding TenNhom}" HorizontalAlignment="Center" FontSize="14" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
        <StackPanel Orientation="Horizontal" Grid.Row="1" Height="26" HorizontalAlignment="Center">
            <Button Content="OK" Width="90" Margin="0,0,20,0" Command="{Binding SaveCommand}"/>
            <Button Content="Cancel" Width="90" Command="{Binding CancelCommand}"/>
        </StackPanel>
    </Grid>
</Window>
